package 笔试;

public class Dog extends Animal {
    public void move(){
        System.out.println("狗跑了");
    }
}

class Test{
    public static void main(String[] args) {
         Animal b=new Dog();
         b.move();
    }
}

class Animal{
    public void move(){
        System.out.println("动物跑了");
    }
}
